import 'package:flutter_fitness/model/db/DBHelper.dart';

final String tableUser = "user";
final String columnUsername = "username";

class User {
  int id;
  String username;

  Map<String, Object> toMap() {
    final map = <String, Object>{
      columnUsername: username
    };
    if (id != null)
      map[columnId] = id;
    return map;
  }

  User();

  User.fromMap(Map<String, Object> map) {
    id = map[columnId];
    username = map[columnUsername];
  }
}